<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <title>Document</title>
    <%@include file="/WEB-INF/jsp/header.jsp"%>
</head>
<body>
<div class="container-fluid">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">条件查询</h3>
        </div>
        <div class="panel-body">
            <form action="" class="form-inline" id="formT">
                <div class="form-group">
                    <label for="">
                        药品名称:
                    </label>
                    <input type="text" class="form-control" name="drugName">
                </div>
                <div class="form-group">
                    <label for="">
                        公司名称:
                    </label>
                    <input type="text" class="form-control" name="proName">
                </div>
                <button class="btn btn-info" type="button" onclick="searchOverdueDruginfo()" >搜索</button>
            </form>

        </div>
    </div>
    <div id="toolbar">
        <button type="button" class="layui-btn layui-btn-small" id="overdue" onclick="overdueDruginfo()">
            <i class="layui-icon"></i> 一键销毁
        </button>
    </div>
    <table
            id="overdueTable"
            data-toolbar="#toolbar"
            data-toggle="table"
            data-url="${ctx}/stock/searchOverdue"
    >
        <thead>
            <tr>
                <th data-checkbox="true"></th>
                <th data-field="druginfo.drugName">药品名称</th>
                <th data-field="druginfo.drugUnit">药品单位</th>
                <th data-field="stoMfg">生产日期</th>
                <th data-field="stoValiddate">有效日期</th>
                <th data-field="stoPcs">库存数量</th>
                <th data-field="stoLotnum">批号</th>
                <th data-field="provider.proName">公司名称</th>
                <th data-formatter="optEvent">操作</th>
            </tr>
        </thead>
    </table>
</div>
<script src="${ctx}/res/js/overdue.js"></script>
<%@include file="/WEB-INF/jsp/footer.jsp"%>
</body>
</html>
